import request from '@/utils/request'

// 查询安装申请列表
export function listInstall(query) {
    return request({
        url: '/business/install/list',
        method: 'get',
        params: query
    })
}

// 查询安装申请详细
export function getInstall(id) {
    return request({
        url: '/business/install/' + id,
        method: 'get'
    })
}

// 新增安装申请
export function addInstall(data) {
    return request({
        url: '/business/install',
        method: 'post',
        data: data
    })
}

// 修改安装申请
export function updateInstall(data) {
    return request({
        url: '/business/install',
        method: 'put',
        data: data
    })
}

// 删除安装申请
export function delInstall(id) {
    return request({
        url: '/business/install/' + id,
        method: 'delete'
    })
}
